package svc

import (
	"camera/B/Api/internal/config"
	cameraclient2 "camera/B/Rpc/cameraclient"
	"github.com/zeromicro/go-zero/zrpc"
)

type ServiceContext struct {
	Config  config.Config
	UserRpc cameraclient2.Camera
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config:  c,
		UserRpc: cameraclient2.NewCamera(zrpc.MustNewClient(c.UserRpc)),
	}
}
